Skip to content

fix: Always dial to root cluster for single-use certificates#20218

Merged
codingllama merged 1 commit into
masterfrom
codingllama/web-ssh-trustedcluster
Jan 13, 2023
Merged

fix: Always dial to root cluster for single-use certificates#20218
codingllama merged 1 commit into
masterfrom
codingllama/web-ssh-trustedcluster

Conversation

@codingllama
Copy link
Copy Markdown
Contributor

The Web UI terminal wrongly dials to the leaf cluster, in trusted cluster scenarios, to issue single-use certificates (the kind one needs when require_session_mfa is enabled).

This fixes that by always dialing to the root cluster, a behavior that matches tsh

#20208

@codingllama
Copy link
Copy Markdown
Contributor Author

FYI @avatus

@codingllama
Copy link
Copy Markdown
Contributor Author

This would be nice to have on v12 for testplan and all, so I'll tentatively add the label. If it doesn't make the cut I can backport. FYI @zmb3 @r0mant.

@codingllama codingllama enabled auto-merge (squash) January 13, 2023 21:41
@codingllama codingllama force-pushed the codingllama/web-ssh-trustedcluster branch 2 times, most recently from b210cde to 5e828d3 Compare January 13, 2023 22:02
@codingllama codingllama force-pushed the codingllama/web-ssh-trustedcluster branch from 5e828d3 to 3204b53 Compare January 13, 2023 22:27
@codingllama codingllama merged commit f2a0451 into master Jan 13, 2023
@github-actions
Copy link
Copy Markdown
Contributor

@codingllama See the table below for backport results.

Branch Result
branch/v10 Create PR
branch/v11 Create PR
branch/v9 Create PR

@zmb3
Copy link
Copy Markdown
Collaborator

zmb3 commented Jan 14, 2023

I opened backports for this one, @codingllama. Thanks for the fix!

codingllama pushed a commit that referenced this pull request Jan 17, 2023
The Web UI terminal wrongly dials to the leaf cluster, in trusted cluster
scenarios, to issue single-use certificates (the kind one needs when 
require_session_mfa` is enabled).

This fixes that by always dialing to the root cluster, [a behavior that matches
`tsh`][1].

[1]: https://github.com/gravitational/teleport/blob/c23532cc009a67c9e11b505b5686d825fd4f68f8/lib/client/client.go#L455-L480

#20208

Backport #20218 to branch/v10
codingllama pushed a commit that referenced this pull request Jan 17, 2023
The Web UI terminal wrongly dials to the leaf cluster, in trusted cluster
scenarios, to issue single-use certificates (the kind one needs when 
require_session_mfa` is enabled).

This fixes that by always dialing to the root cluster, [a behavior that matches
`tsh`][1].

[1]: https://github.com/gravitational/teleport/blob/c23532cc009a67c9e11b505b5686d825fd4f68f8/lib/client/client.go#L455-L480

#20208

Backport #20218 to branch/v11
codingllama pushed a commit that referenced this pull request Jan 17, 2023
The Web UI terminal wrongly dials to the leaf cluster, in trusted cluster
scenarios, to issue single-use certificates (the kind one needs when 
require_session_mfa` is enabled).

This fixes that by always dialing to the root cluster, [a behavior that matches
`tsh`][1].

[1]: https://github.com/gravitational/teleport/blob/c23532cc009a67c9e11b505b5686d825fd4f68f8/lib/client/client.go#L455-L480

#20208

Backport #20218 to branch/v9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants